<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>FOR计算100以内的求和</title>
	<script type="text/javascript">
		var sum=0;
       for (var i=1; i<=100; i++) {
			sum=sum+i;
		}
		console.log(sum);
	</script>
</head>
<body>
	
</body>
</html>